﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterHome.Master" AutoEventWireup="true" CodeBehind="Product.aspx.cs" Inherits="EC21_EDiamond.Product" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="main-content grid_16 rounded ">
                    <!--sidebar-->
                    <div class="sidebar grid_4 alpha">
                        <div class="sidebar grid_4 alpha">
                            <h2 class="rounded">Danh mục sản phẩm</h2>
                            <ul>
                                <asp:Repeater ID="rpDanhMuc" runat="server">
                                    <ItemTemplate>
                                        <li><a href="./Product.aspx?id=<%#Eval("MaDM")%>"><span><%#Eval("TenDM")%></span></a></li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </div>
                        <div class="clear"></div>
                        <div class="block block-layered-nav">
                            <div class="block-title">
                                <span>Gift</span>
                            </div>
                            <div class="block-content">
                                <div class="sidebar-img">
                                    <a href="#"><img src=".\Content\fontend\images\JewelrySpecials.jpg" border="0"></a>          
                                </div>
                            </div>
                        </div>
                        <!--end sidebar-->
                        <div class="block block-layered-nav nav-links-search" id="Div1">
                            <div class="block-title">
                                <span>Đăng ký nhận Newsletter</span>
                            </div>
                            <div class="block-content">
                                <form action="#" method="post" id="Form1">
                                <div style="font-weight: bold; margin-left: 5px;">Đăng ký để nhận thông tin ưu đãi mới nhất từ EC21:</div>
                                <input type="text" name="email" class="floatLeft" id="Text1" title="&#272;&#259;ng k&yacute; b&#7843;n tin c&#7911;a ch&uacute;ng t&ocirc;i" class="input-text required-entry validate-email" />
                                <button class="rounded floatLeft" type="submit" >Send</button>
                                </form>
                                <script type="text/javascript">
                                    //<![CDATA[
                                    var newsletterSubscriberFormDetail = new VarienForm('newsletter-validate-detail');
                                    new Varien.searchForm('newsletter-validate-detail', 'newsletter', 'Nhập email của bạn');
                                    //]]>
                                </script>
                            </div>
                        </div>
                        <div class="clear"></div>
                        <div class="block block-layered-nav">
                            <div class="block-title">
                                <span>Hỗ trợ</span>
                            </div>
                            <div class="block-content">
                                <ul class="grid_3 alpha">
                                    <li><b>HotLine:</b> <b style="color:red; font-size:15px;">0973461481</b></li>
                                    <li><a onclick="_gaq.push(['_trackEvent', 'Webmaster, 'Click', 'Yahoo-Webmaster]);" href="ymsgr:sendim?hoangvukenshin">Hỗ trợ mua hàng</a></li>
                                    <li><a onclick="_gaq.push(['_trackEvent', 'Webmaster, 'Click', 'Yahoo-Webmaster]);" href="ymsgr:sendim?hoangvukenshin">Hỗ trợ kỹ thuật</a></li>
                                    <li><a onclick="_gaq.push(['_trackEvent', 'Webmaster, 'Click', 'Yahoo-Webmaster]);" href="ymsgr:sendim?hoangvukenshin">Hỗ trợ vận chuyển</a></li>
                                </ul>
                            </div>
                        </div>
                        <!-- Load tu database -->
                    </div>
                    <!--end sidebar-->


                    <div class="main grid_12 omega">
                        <!--breadcrum-->
                        <div class="breadcrum_cat">
                            <ul>
                                <li><a href="#">Homepage</a></li>
                                 <li><a href="#"><asp:Label ID="lbDanhMuc" runat="server" Text=""></asp:Label></a></li>
                             </ul>
                        </div>
                        <!--end breadcrum-->

                        <div class="main grid_12 omega">
                            <h1 id="icon"><br><strong><asp:Label ID="lbDanhMuc1" runat="server" Text=""></asp:Label></strong><span>(<asp:Label ID="lbSoSp" runat="server" Text=""></asp:Label> sản phẩm)</span></h1>
                            <br> 
                            <script type="text/javascript">
                                jQuery('h2#icon').css('background', 'url(/skin/frontend/default/hellowired/images/icon-cat-default2.png) no-repeat left center');
                                jQuery('h2#icon').html('Bông tai' + '&nbsp;' + jQuery('h2#icon').html());
                                jQuery('h2#icon').css('padding-left', '35px');
                            </script>
                            <script>
                                jQuery('.wrapper').addClass('goldPage');
                                jQuery('.header-banner').show().html('<img src="#" alt="Trang sức vàng" title="Trang sức vàng" />');
                            </script>
                            <!--main-->
                            <div class="main-items">
                                <asp:Repeater ID="rpSanPham" runat="server">
                                    <ItemTemplate>
                                        <div class="main-item">
                                                <div class="itemhead">
                                                    <a href=".\ProductDetail.aspx?id=<%#Eval("MaSP")%>" title="<%#Eval("TenSP")%>" class="product-image"><img src="<%#Eval("HinhAnh")%>" width="200" height="158"  alt="<%#Eval("TenSP")%>" /></a>
                                                </div>
                                                <div>
                                                    <a href=".\ProductDetail.aspx?id=<%#Eval("MaSP")%>" title="<%#Eval("TenSP")%>" class="product-image"><p><%#Eval("TenSP")%></p>
                                                    <h3>﻿
                                                        <div class="price-box">
                                                            <p class="special-price">
                                                                <span class="price-label"><%# Int32.Parse(Eval("GiaKM").ToString()) == 0 ? "" : "Gi&aacute; khuyến mãi:" %> </span>
                                                                <span class="price" id="Span1"><%# Int32.Parse(Eval("GiaKM").ToString()) == 0 ? "" : Eval("GiaKM", "{0:0,00} VNĐ")%></span>
                                                            </p>
                                                            <p class="<%# Int32.Parse(Eval("GiaKM").ToString()) == 0 ? "special-price" : "old-price" %>>
                                                                <span class="price-label">Gi&aacute; gốc :</span>
                                                                <span class="price" id="Span2"><%#Eval("GiaGoc", "{0:0,00} VNĐ")%></span>
                                                            </p>
                                                        </div>
                                                        <!-- end price div -->
                                                    </h3>
                                                    </a>
                                                </div>
                                            </div> 
                                    </ItemTemplate>
                                </asp:Repeater>
                            </div>
                            <div class="paginator">
                                <div class="pager">
                                    <div class="amount"> Kết quả <asp:Label ID="lbTrangHt" runat="server" Text=""></asp:Label> trong tổng số <asp:Label ID="lbTongTrang" runat="server" Text=""></asp:Label> </div>
                                    <div class="limiter">
                                            
                                    </div>
                                    <div class="pages">
                                        <strong>Trang:</strong>
                                        <ol
                                            <li><asp:HyperLink ID="hplPrevev" runat="server">Trang Trước</asp:HyperLink></li>
                                            <li class="active"><asp:Label ID="lbTrangHt1" runat="server" Text=""></asp:Label></li>
                                            <li><asp:HyperLink ID="hplNext" runat="server">Trang Kế</asp:HyperLink></li>
                                        </ol>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="clear"></div><!--end container-->

                        <div class="full-items-sub grid_16">
                            <h3>Sản phẩm bán chạy</h3>
                            <table>
                                <tr>
                                    <asp:Repeater ID="rpSanPhamXemNhieu" runat="server">
                                        <ItemTemplate>
                                            <td>
                                                <div class="full-items-sub-item"><img src="<%#Eval("HinhAnh")%>" width="180" height="180" alt="<%#Eval("TenSP")%>" >
                                                    <div class="full-items-sub-infos">
                                                        <p class="name"><%#Eval("TenSP")%></p>
                                                        <p><%#Eval("MaSP")%></p>
                                                        <h3>﻿    
                                                            <div class="price-box">
                                                                <p class="special-price">
                                                                    <span class="price-label">Gi&aacute; khuyến mãi:</span>
                                                                    <span class="price" id="product-price-2497">
                                                                        <%# Int32.Parse(Eval("GiaKM").ToString()) == 0 ? "" : Eval("GiaKM", "{0:0,00} VNĐ")%>                       </span>
                                                                </p>
                                                                <p class="old-price">
                                                                    <span class="price-label">Gi&aacute; c&#361;:</span>
                                                                    <span class="price" id="old-price-2497">
                                                                        <%#Eval("GiaGoc", "{0:0,00} VNĐ")%>                  </span>
                                                                </p>
                                                            </div>
                                                            <!-- end price div -->
                                                        </h3>
                                                        <a href="./ProductDetail.aspx?id=<%#Eval("MaSP")%>" class="zoom">Xem chi ti&#7871;t</a>
                                                        <div class="bg-blur"></div>
                                                    </div>
                                                </div>
                                            </td>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </tr>
                                <tr>            
                                    <td>
                                        <div class="full-items-sub-item">
                                            <img src="http://shopping.pnj.com.vn/media/catalog/product/cache/1/thumbnail/180x/9df78eab33525d08d6e5fb8d27136e95/11/09/22/GBD1WB61135.106_1.jpg" width="180" height="180" alt="Bông tai" >
                                            <div class="full-items-sub-infos">
                                                <p class="name">Bông tai</p>
                                                <p>GBD1WB61135.106</p>
                                                <h3>﻿
                                                    <div class="price-box">
                                                        <p class="special-price">
                                                            <span class="price-label">Gi&aacute; khuyến mãi:</span>
                                                            <span class="price" id="product-price-333">
                                                                2,042,000 VND                       </span>
                                                        </p>
                                                        <p class="old-price">
                                                            <span class="price-label">Gi&aacute; c&#361;:</span>
                                                            <span class="price" id="old-price-333">
                                                                2,268,000 VND                   </span>
                                                        </p>
                                                    </div>
                                                    <!-- end price div -->
                                                </h3>
                                                <a href="http://shopping.pnj.com.vn/gbd1wb61135-106-gold.html" class="zoom">Xem chi ti&#7871;t</a>
                                                <div class="bg-blur"></div>
                                            </div>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="full-items-sub-item">
                                            <img src="http://shopping.pnj.com.vn/media/catalog/product/cache/1/thumbnail/180x/9df78eab33525d08d6e5fb8d27136e95/12/03/03/GBD1WA70333.106.jpg" width="180" height="180" alt="Bông tai" >
                                            <div class="full-items-sub-infos">
                                                <p class="name">Bông tai</p>
                                                <p>GBD1WA70333.106</p>
                                                <h3>﻿
                                                    <div class="price-box">
                                                        <p class="special-price">
                                                            <span class="price-label">Gi&aacute; khuyến mãi:</span>
                                                            <span class="price" id="product-price-2354">
                                                                1,584,000 VND                       </span>
                                                        </p>                 
                                                        <p class="old-price">
                                                            <span class="price-label">Gi&aacute; c&#361;:</span>
                                                            <span class="price" id="old-price-2354">
                                                                1,759,000 VND                   </span>
                                                        </p>
                                                    </div>
                                                    <!-- end price div -->
                                                </h3>
                                                <a href="http://shopping.pnj.com.vn/gbd1wa70333-106-gold.html" class="zoom">Xem chi ti&#7871;t</a>
                                                <div class="bg-blur"></div>
                                            </div>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="full-items-sub-item">
                                            <img src="http://shopping.pnj.com.vn/media/catalog/product/cache/1/thumbnail/180x/9df78eab33525d08d6e5fb8d27136e95/13/02/20/GND1WA70834.600.jpg" width="180" height="180" alt="Nhẫn nữ" >
                                            <div class="full-items-sub-infos">
                                                <p class="name">Nhẫn nữ</p>
                                                <p>GND1WA70834.600</p>
                                                <h3>﻿
                                                    <div class="price-box">
                                                        <p class="special-price">
                                                            <span class="price-label">Gi&aacute; khuyến mãi:</span>
                                                            <span class="price" id="product-price-4186">
                                                                5,386,000 VND                       </span>
                                                        </p>
                                                        <p class="old-price">
                                                            <span class="price-label">Gi&aacute; c&#361;:</span>
                                                            <span class="price" id="old-price-4186">
                                                                5,984,000 VND                   </span>
                                                        </p>
                                                    </div>
                                                    <!-- end price div -->
                                                </h3>
                                                <a href="http://shopping.pnj.com.vn/gnd1wa70834-600-gold.html" class="zoom">Xem chi ti&#7871;t</a>
                                                <div class="bg-blur"></div>
                                            </div>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="full-items-sub-item">
                                            <img src="http://shopping.pnj.com.vn/media/catalog/product/cache/1/thumbnail/180x/9df78eab33525d08d6e5fb8d27136e95/11/09/22/GMD1WB61136.106_1.jpg" width="180" height="180" alt="Mề đay" >
                                            <div class="full-items-sub-infos">
                                                <p class="name">Mề đay</p>
                                                <p>GMD1WB61136.106</p>
                                                <h3>﻿
                                                    <div class="price-box">
                                                        <p class="special-price">
                                                            <span class="price-label">Gi&aacute; khuyến mãi:</span>
                                                            <span class="price" id="product-price-338">
                                                                1,719,000 VND                       </span>
                                                        </p>               
                                                        <p class="old-price">
                                                            <span class="price-label">Gi&aacute; c&#361;:</span>
                                                            <span class="price" id="old-price-338">
                                                                1,909,000 VND                   </span>
                                                        </p>
                                                    </div>
                                                    <!-- end price div -->
                                                </h3>
                                                <a href="http://shopping.pnj.com.vn/gmd1wb61136-106-gold.html" class="zoom">Xem chi ti&#7871;t</a>
                                                <div class="bg-blur"></div>
                                            </div>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="full-items-sub-item">
                                            <img src="http://shopping.pnj.com.vn/media/catalog/product/cache/1/thumbnail/180x/9df78eab33525d08d6e5fb8d27136e95/12/03/03/GBD1WA70591.600.jpg" width="180" height="180" alt="Bông tai" >
                                            <div class="full-items-sub-infos">
                                                <p class="name">Bông tai</p>
                                                <p>GBD1WA70591.600</p>
                                                <h3>﻿
                                                    <div class="price-box">
                                                        <p class="special-price">
                                                            <span class="price-label">Gi&aacute; khuyến mãi:</span>
                                                            <span class="price" id="product-price-2334">
                                                                3,105,000 VND                       </span>
                                                            </p>
                                                        <p class="old-price">
                                                            <span class="price-label">Gi&aacute; c&#361;:</span>
                                                            <span class="price" id="old-price-2334">
                                                                3,450,000 VND                   </span>
                                                        </p>
                                                    </div>
                                                    <!-- end price div -->
                                                </h3>
                                                <a href="http://shopping.pnj.com.vn/gbd1wa70591-600-gold.html" class="zoom">Xem chi ti&#7871;t</a>
                                                <div class="bg-blur"></div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>        
                            </table>
                        </div>
                    </div>
                </div>
</asp:Content>
